/**
 * 
 */
package net.toocruel.iqismart.security.core.support;

/**
 * 简单响应的封装类
 * 
 * @author toocruel
 *
 */
public class Result {
	private int code = 0;
	private Object message = "";
	private Object data = "";

	public static Result LOGIN = new Result(1001,"请登录后继续操作!");
	public static Result SUCCESS = new Result(0,"");
	public static Result FAILE = new Result(1000,"");

	public Result() {}

	public Result(int code, String message) {
		this.code = code;
		this.message = message;
	}

	public Result(Object data) {
		this.data = data;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}


	public Object getMessage() {
		return message;
	}

	public void setMessage(Object message) {
		this.message = message;
	}



	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}


	
}
